﻿using System;
using System.Drawing;
using System.Linq;
using Point = System.Windows.Point;

namespace Clancy.Data
{
    public class MotionZone
    {
        public MotionZone(int x, int y, int width, int height)
        {
            X = x;
            Y = y;
            Width = width;
            Height = height;
        }

        public MotionZone(Rectangle rect)
        {
            X = rect.X;
            Y = rect.Y;
            Width = rect.Width;
            Height = rect.Height;
        }

        public int X { get; set; }
        public int Y { get; set; }
        public int Height { get; set; }
        public int Width { get; set; }
    }

    public class MotionZonePoint
    {
        public MotionZonePoint(int x, int y)
        {
            X = x;
            Y = y;
        }

        public int X { get; set; }
        public int Y { get; set; }

        public bool IsSamePoint(Point pt)
        {
            return ((int) pt.X == X) && ((int) pt.Y == Y);
        }
    }
}
